   


#ifndef __F133_DRV_CONFIG_H__
#define __F133_DRV_CONFIG_H__

//   #include "f133_drv_config.h" 	 

#include "stdint.h"

/* C binding of definitions if building with C++ compiler */
#ifdef __cplusplus
extern "C"
{
#endif




#define BOARD_X86               (0x01)     //在PC环境测试
#define BOARD_F133_KTJ          (0x02)     //康体佳 F133集中器 // 康体佳F133 车工系统 ssh -p 36922 root@192.168.0.108  port : 36922 密码 ： kt@j2199.kl 



#define BOARD_TEST_ENABLE   (0x00)  //是否是在PC环境模拟测试

//#define BOARD_TPYE      BOARD_X86
#define BOARD_TPYE      BOARD_F133_KTJ       /////这个外设尚未调通
                                                      




#if (BOARD_TPYE != BOARD_X86)


#include "iotv30_tcp_client.h"
#include "timer_app.h"


#endif





#if (BOARD_TPYE == BOARD_X86)




#elif (BOARD_TPYE == BOARD_F133_KTJ)



// #define DEVICE_PATH_RS485_METER      DEVICE_PATH_RS485_CH2


// //gpio113---LED1		PD17	74		红色-D17	红色-D37	从下向上数第2个	gpio113	0-亮，1-灭	link
// //gpio114---LED2		PD18	75		绿色-D18	红色-D36	从下向上数第1个	gpio114	0-亮，1-灭	run
// #define LINK_LED_INDEX    113
// #define RUN_LED_INDEX     114
// //#define ALARM_LED   "gpio113"    ///alarm

// #define LED_OFF_LEVEL         (1)   //=高电平灭 
// #define LED_ON_LEVEL          (0)   //=低电平亮



// #define    run_led_on()     led_api_on( RUN_LED_INDEX )
// #define    run_led_off()    led_api_off( RUN_LED_INDEX )
// #define    run_led_tog()    led_api_run_tog()

// #define    link_led_on()     led_api_on( LINK_LED_INDEX )
// #define    link_led_off()    led_api_off( LINK_LED_INDEX )
// #define    link_led_tog()    led_api_link_tog()

// #define    led_open()        led_api_open()
// #define    led_close()       led_api_close()


// #define    warn_led_on()    /////没有对应的led
// #define    warn_led_off()    
// #define    warn_led_tog()   


// #define    power_led_on()     
// #define    power_led_off()    



#endif  



#define     PRINT_DEBUG_ENABLE       (0x01)

//#define     logout                  printf
//#define     logout                      



#define   FAILED   (-1)
#define   SUCCESS   (1)




#ifdef __cplusplus
}
#endif

#endif /* __F133_DRV_CONFIG_H__ */










